package com.sunlake.spring.main.model.article.mapper;

import com.sunlake.spring.main.model.article.po.ArticlesPO;

import java.util.List;

/**
* @author liuhanzhi49
* @description 针对表【articles】的数据库操作Mapper
* @createDate 2025-09-23 15:10:48
* @Entity generator.domain.Articles
*/
public interface ArticlesMapper {

    int deleteByPrimaryKey(Long id);

    int insert(ArticlesPO record);

    int insertSelective(ArticlesPO record);

    ArticlesPO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ArticlesPO record);

    int updateByPrimaryKey(ArticlesPO record);

    List<ArticlesPO> selectByCategoryAndKeyword(String category, String keyword);

    List<ArticlesPO> selectByKeyword(String keyword);
}
